import parse #load the parser.
import stack #load the stack class.
from command import cmd

s=stack.Stack() #create new stack.
parser=parse.Parser(s) #create a parser, pass the stack.
#starts interpreting.
def interpret():
  c=cmd(s,parser) #get a command shell, passing the parser.
  c.start() #start excepting commands.

if __name__=="__main__": #if the user typed "python smartles.py" or some such,
 interpret()  #start interpreting.